//
//  TQListCell.swift
//  GjCup
//
//  Created by abc on 2024/4/12.
//

import UIKit

class TQListCell: UITableViewCell {
    
    
    @IBOutlet weak var bgView: UIView!{
        didSet{
            bgView.layer.cornerRadius = 12
        }
    }
    @IBOutlet weak var authLa: UILabel!
    
    @IBOutlet weak var contentLa: UILabel!
    
    var model: TQModel?{
        didSet{
            if let m = model {
                contentLa.text = m.content
                authLa.text = "-- " + m.author
            }
        }
    }
    
    override func awakeFromNib() {
        super.awakeFromNib()
        // Initialization code
    }

    override func setSelected(_ selected: Bool, animated: Bool) {
        super.setSelected(selected, animated: animated)

        // Configure the view for the selected state
    }

}
